package org.jsola.hr.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author JanusMix
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【用户角色】的参数")
@Data
public class UpdateUserRoleDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = "用户id", example = "1", required = true)
    @NotNull(message = "请传递用户id")
    private String userId;

    @ApiModelProperty(notes = "角色id", example = "1", required = true)
    private Long roleId;

    @ApiModelProperty(notes = "人力角色id", example = "1")
    @NotNull(message = "人力角色不能为空")
    private Long hrRoleId;

    @ApiModelProperty(notes = "用工单位分组ids")
    private List<String> childCompanyIdList;

    @ApiModelProperty(notes = "用工单位ids")
    private List<String> employerIdList;

    @ApiModelProperty(notes = "是否是全部用工单位分组", example = "1:是,0:否")
    private Boolean isAllChildCompany;

    @ApiModelProperty(notes = "是否只读用户", example = "1:是,0:否")
    private Boolean isReadOnly;

}
